<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<form id="loginForm" action="login" method="post">
		<%
			String error = (String) request.getAttribute("username");
			if(error != null){
		%>
				<div class="alert alert-error controls input-large">
					<button class="close" data-dismiss="alert">×</button>
		<%
				if(error.contains("DisabledAccountException")){
					out.print("User has been disabled");
				}
				else{
					out.print("Login error ,please retry.");
				} 
		%>		
				</div>
		<%
			}
		%>
		<div class="control-group">
			<label for="username" class="control-label">UserName</label>
			<div class="controls">
				<input type="text" id="username" name="username" value="hsia@163.com" class="input-medium required"/>
			</div>
		</div>
		<div class="control-group">
			<label for="password" class="control-label">Password:</label>
			<div class="controls">
				<input type="password" id="password" name="password" value="123456" class="input-medium required"/>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<label class="checkbox inline" for="rememberMe"> <input type="checkbox" id="rememberMe" name="rememberMe"/> remember me</label>
				<input id="submit_btn" class="btn" type="submit" value="Login"/>
				
			</div>
		</div>
	</form>
</body>
</html>